<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>展示结果</title>
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" href="/webjars/bootstrap/3.3.5/css/bootstrap.min.css" />
    <script src="/webjars/jquery/3.1.1/jquery.min.js"></script>
    <script src="/webjars/bootstrap/3.3.5/js/bootstrap.min.js"></script>
</head>
<body>
<h2>查找到的学生的信息</h2>
<table  class="table table-bordered  table-striped table-hover table-condensed">
    <tr>
        <th>学号</th>
        <th>姓名</th>

        <th>性别</th>
        <th>年龄</th>
        <th>专业</th>

    </tr>
    <!--遍历存放在map集合中的课程信息-->
    <tr th:each="student:${preAndSex}">
        <th th:text="${student.getSno()}"></th>
        <th th:text="${student.getSname()}"></th>
        <th th:if="${student.getSsex()}">男</th>
        <th th:unless="${student.getSsex()}">女</th>

        <th th:text="${student.getSage()}"></th>
        <th th:text="${student.getSdept()}"></th>
    </tr>
</table>
<a class="btn btn-danger" th:href="@{/}" >跳转到首页</a><br/><br/>
</body>
</html>